--TEST--
Postscript increment and decrement
--FILE--
<?php

/*
   +-------------------------------------------------------------+
   | Copyright (c) 2014 Facebook, Inc. (http://www.facebook.com) |
   +-------------------------------------------------------------+
*/

error_reporting(-1);

function incdec($a)
{
	echo "--------------------------------------- start incdec ---\n";
	echo '$a = '.$a." <---> "; var_dump($a);

	$a--;
	echo '$a = '.$a." <---> "; var_dump($a);

	$a++;
	echo '$a = '.$a." <---> "; var_dump($a);

	echo '$a = '.$a++."\n";
	echo '$a = '.$a." <---> "; var_dump($a);
	echo "--------------------------------------- end incdec ---\n";
}

function incdecrev($a)
{
	echo "--------------------------------------- start incdecrev ---\n";
	echo '$a = '.$a." <---> "; var_dump($a);

	$a++;
	echo '$a = '.$a." <---> "; var_dump($a);

	$a--;
	echo '$a = '.$a." <---> "; var_dump($a);

	echo '$a = '.$a--."\n";
	echo '$a = '.$a." <---> "; var_dump($a);
	echo "--------------------------------------- end incdecrev ---\n";
}
///*
// integer values ----------------------------------------------------

incdec(5);
incdecrev(5);
incdec(-10);
incdecrev(-10);
incdec(PHP_INT_MAX);
incdecrev(PHP_INT_MAX);
incdec(-PHP_INT_MAX - 1);
incdecrev(-PHP_INT_MAX - 1);

// floating-point values ----------------------------------------------------

incdec(12.345);
incdecrev(12.345);
//*/

///*
// special IEEE floating-point values ----------------------------------------------------

incdec(INF);
incdecrev(INF);
incdec(-INF);
incdecrev(-INF);
incdec(NAN);
incdecrev(NAN);
//*/

///*
// NULL value ----------------------------------------------------

incdec(NULL);
incdecrev(NULL);
//*/

///*
// Boolean values ----------------------------------------------------

incdec(TRUE);
incdecrev(FALSE);
//*/

// string values ----------------------------------------------------
///*
// an empty string

incdec("");
incdecrev("");
//*/

// strings containing numbers
///*
// whole-numbers

incdec("0");
incdecrev("0");
incdec("9");
incdecrev("9");
incdec("26");
incdecrev("26");
incdec("98325");
incdecrev("98325");
incdec("9223372036854775807");
incdecrev("9223372036854775807");
//*/

///*
// test that number bases other than decimal are not supported

incdec("012");
incdecrev("012");
incdec("0x12");
incdecrev("0x12");
incdec("0X12");
incdecrev("0X12");
incdec("0b101");
incdecrev("0b101");
incdec("0B101");
incdecrev("0B101");
incdec("0Q101");
incdecrev("0Q101");
//*/

///*
// fractional values

incdec("123.456");
incdecrev("123.456");
incdec("1.23E-27");
incdecrev("1.23E-27");
//*/

///*
// leading and trailing whitespace

incdec(" 43");
incdecrev(" 43");
incdec("   654");
incdecrev("   654");
incdec("\t \n\f\r\v94");
incdecrev("\t \n\f\r\v94");
incdec("987 ");
incdecrev("987 ");
incdec("15 \t \n\f\r\v");
incdecrev("15 \t \n\f\r\v");
//*/

///*
// strings with leading zeros

incdec("012");
incdecrev("012");
incdec("   000012345");
incdecrev("   000012345");
incdec("00012.345");
incdecrev("00012.345");
incdec("  00012.345");
incdecrev("  00012.345");
//*/

///*
// leading sign

incdec("-12345");
incdecrev("-12345");
incdec("+9.87");
incdecrev("+9.87");
//*/

// string containing non-numbers
///*
// strings containing one alphabetic character

incdec("a");
incdecrev("a");
incdec("z");
incdecrev("z");

incdec("A");
incdecrev("A");
incdec("Z");
incdecrev("Z");
//*/

///*
// strings containing multiple alphanumeric characters

incdec("F28");
incdecrev("F28");
incdec("F28");
incdecrev("F98");
incdec("F98");
incdecrev("FZ8");
incdec("ZZ8");
incdecrev("ZZ8");
incdecrev("543J");
incdec("543J");
incdecrev("543J9");
incdec("543J9");
//*/

///*
// strings ending in non-alphanumeric characters

incdec("&");
incdecrev("&");
incdec("83&");
incdecrev("83&");
incdec("83&8");
incdecrev("83&8");
incdec("83&Z8");
incdecrev("83&Z8");
incdec("83&z8");
incdecrev("83&z8");
incdec("&28");
incdecrev("&28");
incdec("&98");
incdecrev("&98");
//*/

///*
$x = "aa";
var_dump($x);
var_dump(--$x);
var_dump(--$x);

$x = "zza";
var_dump($x);
var_dump(--$x);
var_dump(--$x);
//*/
--EXPECT--
--------------------------------------- start incdec ---
$a = 5 <---> int(5)
$a = 4 <---> int(4)
$a = 5 <---> int(5)
$a = 5
$a = 6 <---> int(6)
--------------------------------------- end incdec ---
--------------------------------------- start incdecrev ---
$a = 5 <---> int(5)
$a = 6 <---> int(6)
$a = 5 <---> int(5)
$a = 5
$a = 4 <---> int(4)
--------------------------------------- end incdecrev ---
--------------------------------------- start incdec ---
$a = -10 <---> int(-10)
$a = -11 <---> int(-11)
$a = -10 <---> int(-10)
$a = -10
$a = -9 <---> int(-9)
--------------------------------------- end incdec ---
--------------------------------------- start incdecrev ---
$a = -10 <---> int(-10)
$a = -9 <---> int(-9)
$a = -10 <---> int(-10)
$a = -10
$a = -11 <---> int(-11)
--------------------------------------- end incdecrev ---
--------------------------------------- start incdec ---
$a = 9223372036854775807 <---> int(9223372036854775807)
$a = 9223372036854775806 <---> int(9223372036854775806)
$a = 9223372036854775807 <---> int(9223372036854775807)
$a = 9223372036854775807
$a = 9.2233720368548E+18 <---> float(9.2233720368548E+18)
--------------------------------------- end incdec ---
--------------------------------------- start incdecrev ---
$a = 9223372036854775807 <---> int(9223372036854775807)
$a = 9.2233720368548E+18 <---> float(9.2233720368548E+18)
$a = 9.2233720368548E+18 <---> float(9.2233720368548E+18)
$a = 9.2233720368548E+18
$a = 9.2233720368548E+18 <---> float(9.2233720368548E+18)
--------------------------------------- end incdecrev ---
--------------------------------------- start incdec ---
$a = -9223372036854775808 <---> int(-9223372036854775808)
$a = -9.2233720368548E+18 <---> float(-9.2233720368548E+18)
$a = -9.2233720368548E+18 <---> float(-9.2233720368548E+18)
$a = -9.2233720368548E+18
$a = -9.2233720368548E+18 <---> float(-9.2233720368548E+18)
--------------------------------------- end incdec ---
--------------------------------------- start incdecrev ---
$a = -9223372036854775808 <---> int(-9223372036854775808)
$a = -9223372036854775807 <---> int(-9223372036854775807)
$a = -9223372036854775808 <---> int(-9223372036854775808)
$a = -9223372036854775808
$a = -9.2233720368548E+18 <---> float(-9.2233720368548E+18)
--------------------------------------- end incdecrev ---
--------------------------------------- start incdec ---
$a = 12.345 <---> float(12.345)
$a = 11.345 <---> float(11.345)
$a = 12.345 <---> float(12.345)
$a = 12.345
$a = 13.345 <---> float(13.345)
--------------------------------------- end incdec ---
--------------------------------------- start incdecrev ---
$a = 12.345 <---> float(12.345)
$a = 13.345 <---> float(13.345)
$a = 12.345 <---> float(12.345)
$a = 12.345
$a = 11.345 <---> float(11.345)
--------------------------------------- end incdecrev ---
--------------------------------------- start incdec ---
$a = INF <---> float(INF)
$a = INF <---> float(INF)
$a = INF <---> float(INF)
$a = INF
$a = INF <---> float(INF)
--------------------------------------- end incdec ---
--------------------------------------- start incdecrev ---
$a = INF <---> float(INF)
$a = INF <---> float(INF)
$a = INF <---> float(INF)
$a = INF
$a = INF <---> float(INF)
--------------------------------------- end incdecrev ---
--------------------------------------- start incdec ---
$a = -INF <---> float(-INF)
$a = -INF <---> float(-INF)
$a = -INF <---> float(-INF)
$a = -INF
$a = -INF <---> float(-INF)
--------------------------------------- end incdec ---
--------------------------------------- start incdecrev ---
$a = -INF <---> float(-INF)
$a = -INF <---> float(-INF)
$a = -INF <---> float(-INF)
$a = -INF
$a = -INF <---> float(-INF)
--------------------------------------- end incdecrev ---
--------------------------------------- start incdec ---
$a = NAN <---> float(NAN)
$a = NAN <---> float(NAN)
$a = NAN <---> float(NAN)
$a = NAN
$a = NAN <---> float(NAN)
--------------------------------------- end incdec ---
--------------------------------------- start incdecrev ---
$a = NAN <---> float(NAN)
$a = NAN <---> float(NAN)
$a = NAN <---> float(NAN)
$a = NAN
$a = NAN <---> float(NAN)
--------------------------------------- end incdecrev ---
--------------------------------------- start incdec ---
$a =  <---> NULL
$a =  <---> NULL
$a = 1 <---> int(1)
$a = 1
$a = 2 <---> int(2)
--------------------------------------- end incdec ---
--------------------------------------- start incdecrev ---
$a =  <---> NULL
$a = 1 <---> int(1)
$a = 0 <---> int(0)
$a = 0
$a = -1 <---> int(-1)
--------------------------------------- end incdecrev ---
--------------------------------------- start incdec ---
$a = 1 <---> bool(true)
$a = 1 <---> bool(true)
$a = 1 <---> bool(true)
$a = 1
$a = 1 <---> bool(true)
--------------------------------------- end incdec ---
--------------------------------------- start incdecrev ---
$a =  <---> bool(false)
$a =  <---> bool(false)
$a =  <---> bool(false)
$a = 
$a =  <---> bool(false)
--------------------------------------- end incdecrev ---
--------------------------------------- start incdec ---
$a =  <---> string(0) ""
$a = -1 <---> int(-1)
$a = 0 <---> int(0)
$a = 0
$a = 1 <---> int(1)
--------------------------------------- end incdec ---
--------------------------------------- start incdecrev ---
$a =  <---> string(0) ""
$a = 1 <---> string(1) "1"
$a = 0 <---> int(0)
$a = 0
$a = -1 <---> int(-1)
--------------------------------------- end incdecrev ---
--------------------------------------- start incdec ---
$a = 0 <---> string(1) "0"
$a = -1 <---> int(-1)
$a = 0 <---> int(0)
$a = 0
$a = 1 <---> int(1)
--------------------------------------- end incdec ---
--------------------------------------- start incdecrev ---
$a = 0 <---> string(1) "0"
$a = 1 <---> int(1)
$a = 0 <---> int(0)
$a = 0
$a = -1 <---> int(-1)
--------------------------------------- end incdecrev ---
--------------------------------------- start incdec ---
$a = 9 <---> string(1) "9"
$a = 8 <---> int(8)
$a = 9 <---> int(9)
$a = 9
$a = 10 <---> int(10)
--------------------------------------- end incdec ---
--------------------------------------- start incdecrev ---
$a = 9 <---> string(1) "9"
$a = 10 <---> int(10)
$a = 9 <---> int(9)
$a = 9
$a = 8 <---> int(8)
--------------------------------------- end incdecrev ---
--------------------------------------- start incdec ---
$a = 26 <---> string(2) "26"
$a = 25 <---> int(25)
$a = 26 <---> int(26)
$a = 26
$a = 27 <---> int(27)
--------------------------------------- end incdec ---
--------------------------------------- start incdecrev ---
$a = 26 <---> string(2) "26"
$a = 27 <---> int(27)
$a = 26 <---> int(26)
$a = 26
$a = 25 <---> int(25)
--------------------------------------- end incdecrev ---
--------------------------------------- start incdec ---
$a = 98325 <---> string(5) "98325"
$a = 98324 <---> int(98324)
$a = 98325 <---> int(98325)
$a = 98325
$a = 98326 <---> int(98326)
--------------------------------------- end incdec ---
--------------------------------------- start incdecrev ---
$a = 98325 <---> string(5) "98325"
$a = 98326 <---> int(98326)
$a = 98325 <---> int(98325)
$a = 98325
$a = 98324 <---> int(98324)
--------------------------------------- end incdecrev ---
--------------------------------------- start incdec ---
$a = 9223372036854775807 <---> string(19) "9223372036854775807"
$a = 9223372036854775806 <---> int(9223372036854775806)
$a = 9223372036854775807 <---> int(9223372036854775807)
$a = 9223372036854775807
$a = 9.2233720368548E+18 <---> float(9.2233720368548E+18)
--------------------------------------- end incdec ---
--------------------------------------- start incdecrev ---
$a = 9223372036854775807 <---> string(19) "9223372036854775807"
$a = 9.2233720368548E+18 <---> float(9.2233720368548E+18)
$a = 9.2233720368548E+18 <---> float(9.2233720368548E+18)
$a = 9.2233720368548E+18
$a = 9.2233720368548E+18 <---> float(9.2233720368548E+18)
--------------------------------------- end incdecrev ---
--------------------------------------- start incdec ---
$a = 012 <---> string(3) "012"
$a = 11 <---> int(11)
$a = 12 <---> int(12)
$a = 12
$a = 13 <---> int(13)
--------------------------------------- end incdec ---
--------------------------------------- start incdecrev ---
$a = 012 <---> string(3) "012"
$a = 13 <---> int(13)
$a = 12 <---> int(12)
$a = 12
$a = 11 <---> int(11)
--------------------------------------- end incdecrev ---
--------------------------------------- start incdec ---
$a = 0x12 <---> string(4) "0x12"
$a = 0x12 <---> string(4) "0x12"
$a = 0x13 <---> string(4) "0x13"
$a = 0x13
$a = 0x14 <---> string(4) "0x14"
--------------------------------------- end incdec ---
--------------------------------------- start incdecrev ---
$a = 0x12 <---> string(4) "0x12"
$a = 0x13 <---> string(4) "0x13"
$a = 0x13 <---> string(4) "0x13"
$a = 0x13
$a = 0x13 <---> string(4) "0x13"
--------------------------------------- end incdecrev ---
--------------------------------------- start incdec ---
$a = 0X12 <---> string(4) "0X12"
$a = 0X12 <---> string(4) "0X12"
$a = 0X13 <---> string(4) "0X13"
$a = 0X13
$a = 0X14 <---> string(4) "0X14"
--------------------------------------- end incdec ---
--------------------------------------- start incdecrev ---
$a = 0X12 <---> string(4) "0X12"
$a = 0X13 <---> string(4) "0X13"
$a = 0X13 <---> string(4) "0X13"
$a = 0X13
$a = 0X13 <---> string(4) "0X13"
--------------------------------------- end incdecrev ---
--------------------------------------- start incdec ---
$a = 0b101 <---> string(5) "0b101"
$a = 0b101 <---> string(5) "0b101"
$a = 0b102 <---> string(5) "0b102"
$a = 0b102
$a = 0b103 <---> string(5) "0b103"
--------------------------------------- end incdec ---
--------------------------------------- start incdecrev ---
$a = 0b101 <---> string(5) "0b101"
$a = 0b102 <---> string(5) "0b102"
$a = 0b102 <---> string(5) "0b102"
$a = 0b102
$a = 0b102 <---> string(5) "0b102"
--------------------------------------- end incdecrev ---
--------------------------------------- start incdec ---
$a = 0B101 <---> string(5) "0B101"
$a = 0B101 <---> string(5) "0B101"
$a = 0B102 <---> string(5) "0B102"
$a = 0B102
$a = 0B103 <---> string(5) "0B103"
--------------------------------------- end incdec ---
--------------------------------------- start incdecrev ---
$a = 0B101 <---> string(5) "0B101"
$a = 0B102 <---> string(5) "0B102"
$a = 0B102 <---> string(5) "0B102"
$a = 0B102
$a = 0B102 <---> string(5) "0B102"
--------------------------------------- end incdecrev ---
--------------------------------------- start incdec ---
$a = 0Q101 <---> string(5) "0Q101"
$a = 0Q101 <---> string(5) "0Q101"
$a = 0Q102 <---> string(5) "0Q102"
$a = 0Q102
$a = 0Q103 <---> string(5) "0Q103"
--------------------------------------- end incdec ---
--------------------------------------- start incdecrev ---
$a = 0Q101 <---> string(5) "0Q101"
$a = 0Q102 <---> string(5) "0Q102"
$a = 0Q102 <---> string(5) "0Q102"
$a = 0Q102
$a = 0Q102 <---> string(5) "0Q102"
--------------------------------------- end incdecrev ---
--------------------------------------- start incdec ---
$a = 123.456 <---> string(7) "123.456"
$a = 122.456 <---> float(122.456)
$a = 123.456 <---> float(123.456)
$a = 123.456
$a = 124.456 <---> float(124.456)
--------------------------------------- end incdec ---
--------------------------------------- start incdecrev ---
$a = 123.456 <---> string(7) "123.456"
$a = 124.456 <---> float(124.456)
$a = 123.456 <---> float(123.456)
$a = 123.456
$a = 122.456 <---> float(122.456)
--------------------------------------- end incdecrev ---
--------------------------------------- start incdec ---
$a = 1.23E-27 <---> string(8) "1.23E-27"
$a = -1 <---> float(-1)
$a = 0 <---> float(0)
$a = 0
$a = 1 <---> float(1)
--------------------------------------- end incdec ---
--------------------------------------- start incdecrev ---
$a = 1.23E-27 <---> string(8) "1.23E-27"
$a = 1 <---> float(1)
$a = 0 <---> float(0)
$a = 0
$a = -1 <---> float(-1)
--------------------------------------- end incdecrev ---
--------------------------------------- start incdec ---
$a =  43 <---> string(3) " 43"
$a = 42 <---> int(42)
$a = 43 <---> int(43)
$a = 43
$a = 44 <---> int(44)
--------------------------------------- end incdec ---
--------------------------------------- start incdecrev ---
$a =  43 <---> string(3) " 43"
$a = 44 <---> int(44)
$a = 43 <---> int(43)
$a = 43
$a = 42 <---> int(42)
--------------------------------------- end incdecrev ---
--------------------------------------- start incdec ---
$a =    654 <---> string(6) "   654"
$a = 653 <---> int(653)
$a = 654 <---> int(654)
$a = 654
$a = 655 <---> int(655)
--------------------------------------- end incdec ---
--------------------------------------- start incdecrev ---
$a =    654 <---> string(6) "   654"
$a = 655 <---> int(655)
$a = 654 <---> int(654)
$a = 654
$a = 653 <---> int(653)
--------------------------------------- end incdecrev ---
--------------------------------------- start incdec ---
$a = 	 
94 <---> string(8) "	 
94"
$a = 93 <---> int(93)
$a = 94 <---> int(94)
$a = 94
$a = 95 <---> int(95)
--------------------------------------- end incdec ---
--------------------------------------- start incdecrev ---
$a = 	 
94 <---> string(8) "	 
94"
$a = 95 <---> int(95)
$a = 94 <---> int(94)
$a = 94
$a = 93 <---> int(93)
--------------------------------------- end incdecrev ---
--------------------------------------- start incdec ---
$a = 987  <---> string(4) "987 "
$a = 987  <---> string(4) "987 "
$a = 987  <---> string(4) "987 "
$a = 987 
$a = 987  <---> string(4) "987 "
--------------------------------------- end incdec ---
--------------------------------------- start incdecrev ---
$a = 987  <---> string(4) "987 "
$a = 987  <---> string(4) "987 "
$a = 987  <---> string(4) "987 "
$a = 987 
$a = 987  <---> string(4) "987 "
--------------------------------------- end incdecrev ---
--------------------------------------- start incdec ---
$a = 15 	 
 <---> string(9) "15 	 
"
$a = 15 	 
 <---> string(9) "15 	 
"
$a = 15 	 
 <---> string(9) "15 	 
"
$a = 15 	 

$a = 15 	 
 <---> string(9) "15 	 
"
--------------------------------------- end incdec ---
--------------------------------------- start incdecrev ---
$a = 15 	 
 <---> string(9) "15 	 
"
$a = 15 	 
 <---> string(9) "15 	 
"
$a = 15 	 
 <---> string(9) "15 	 
"
$a = 15 	 

$a = 15 	 
 <---> string(9) "15 	 
"
--------------------------------------- end incdecrev ---
--------------------------------------- start incdec ---
$a = 012 <---> string(3) "012"
$a = 11 <---> int(11)
$a = 12 <---> int(12)
$a = 12
$a = 13 <---> int(13)
--------------------------------------- end incdec ---
--------------------------------------- start incdecrev ---
$a = 012 <---> string(3) "012"
$a = 13 <---> int(13)
$a = 12 <---> int(12)
$a = 12
$a = 11 <---> int(11)
--------------------------------------- end incdecrev ---
--------------------------------------- start incdec ---
$a =    000012345 <---> string(12) "   000012345"
$a = 12344 <---> int(12344)
$a = 12345 <---> int(12345)
$a = 12345
$a = 12346 <---> int(12346)
--------------------------------------- end incdec ---
--------------------------------------- start incdecrev ---
$a =    000012345 <---> string(12) "   000012345"
$a = 12346 <---> int(12346)
$a = 12345 <---> int(12345)
$a = 12345
$a = 12344 <---> int(12344)
--------------------------------------- end incdecrev ---
--------------------------------------- start incdec ---
$a = 00012.345 <---> string(9) "00012.345"
$a = 11.345 <---> float(11.345)
$a = 12.345 <---> float(12.345)
$a = 12.345
$a = 13.345 <---> float(13.345)
--------------------------------------- end incdec ---
--------------------------------------- start incdecrev ---
$a = 00012.345 <---> string(9) "00012.345"
$a = 13.345 <---> float(13.345)
$a = 12.345 <---> float(12.345)
$a = 12.345
$a = 11.345 <---> float(11.345)
--------------------------------------- end incdecrev ---
--------------------------------------- start incdec ---
$a =   00012.345 <---> string(11) "  00012.345"
$a = 11.345 <---> float(11.345)
$a = 12.345 <---> float(12.345)
$a = 12.345
$a = 13.345 <---> float(13.345)
--------------------------------------- end incdec ---
--------------------------------------- start incdecrev ---
$a =   00012.345 <---> string(11) "  00012.345"
$a = 13.345 <---> float(13.345)
$a = 12.345 <---> float(12.345)
$a = 12.345
$a = 11.345 <---> float(11.345)
--------------------------------------- end incdecrev ---
--------------------------------------- start incdec ---
$a = -12345 <---> string(6) "-12345"
$a = -12346 <---> int(-12346)
$a = -12345 <---> int(-12345)
$a = -12345
$a = -12344 <---> int(-12344)
--------------------------------------- end incdec ---
--------------------------------------- start incdecrev ---
$a = -12345 <---> string(6) "-12345"
$a = -12344 <---> int(-12344)
$a = -12345 <---> int(-12345)
$a = -12345
$a = -12346 <---> int(-12346)
--------------------------------------- end incdecrev ---
--------------------------------------- start incdec ---
$a = +9.87 <---> string(5) "+9.87"
$a = 8.87 <---> float(8.87)
$a = 9.87 <---> float(9.87)
$a = 9.87
$a = 10.87 <---> float(10.87)
--------------------------------------- end incdec ---
--------------------------------------- start incdecrev ---
$a = +9.87 <---> string(5) "+9.87"
$a = 10.87 <---> float(10.87)
$a = 9.87 <---> float(9.87)
$a = 9.87
$a = 8.87 <---> float(8.87)
--------------------------------------- end incdecrev ---
--------------------------------------- start incdec ---
$a = a <---> string(1) "a"
$a = a <---> string(1) "a"
$a = b <---> string(1) "b"
$a = b
$a = c <---> string(1) "c"
--------------------------------------- end incdec ---
--------------------------------------- start incdecrev ---
$a = a <---> string(1) "a"
$a = b <---> string(1) "b"
$a = b <---> string(1) "b"
$a = b
$a = b <---> string(1) "b"
--------------------------------------- end incdecrev ---
--------------------------------------- start incdec ---
$a = z <---> string(1) "z"
$a = z <---> string(1) "z"
$a = aa <---> string(2) "aa"
$a = aa
$a = ab <---> string(2) "ab"
--------------------------------------- end incdec ---
--------------------------------------- start incdecrev ---
$a = z <---> string(1) "z"
$a = aa <---> string(2) "aa"
$a = aa <---> string(2) "aa"
$a = aa
$a = aa <---> string(2) "aa"
--------------------------------------- end incdecrev ---
--------------------------------------- start incdec ---
$a = A <---> string(1) "A"
$a = A <---> string(1) "A"
$a = B <---> string(1) "B"
$a = B
$a = C <---> string(1) "C"
--------------------------------------- end incdec ---
--------------------------------------- start incdecrev ---
$a = A <---> string(1) "A"
$a = B <---> string(1) "B"
$a = B <---> string(1) "B"
$a = B
$a = B <---> string(1) "B"
--------------------------------------- end incdecrev ---
--------------------------------------- start incdec ---
$a = Z <---> string(1) "Z"
$a = Z <---> string(1) "Z"
$a = AA <---> string(2) "AA"
$a = AA
$a = AB <---> string(2) "AB"
--------------------------------------- end incdec ---
--------------------------------------- start incdecrev ---
$a = Z <---> string(1) "Z"
$a = AA <---> string(2) "AA"
$a = AA <---> string(2) "AA"
$a = AA
$a = AA <---> string(2) "AA"
--------------------------------------- end incdecrev ---
--------------------------------------- start incdec ---
$a = F28 <---> string(3) "F28"
$a = F28 <---> string(3) "F28"
$a = F29 <---> string(3) "F29"
$a = F29
$a = F30 <---> string(3) "F30"
--------------------------------------- end incdec ---
--------------------------------------- start incdecrev ---
$a = F28 <---> string(3) "F28"
$a = F29 <---> string(3) "F29"
$a = F29 <---> string(3) "F29"
$a = F29
$a = F29 <---> string(3) "F29"
--------------------------------------- end incdecrev ---
--------------------------------------- start incdec ---
$a = F28 <---> string(3) "F28"
$a = F28 <---> string(3) "F28"
$a = F29 <---> string(3) "F29"
$a = F29
$a = F30 <---> string(3) "F30"
--------------------------------------- end incdec ---
--------------------------------------- start incdecrev ---
$a = F98 <---> string(3) "F98"
$a = F99 <---> string(3) "F99"
$a = F99 <---> string(3) "F99"
$a = F99
$a = F99 <---> string(3) "F99"
--------------------------------------- end incdecrev ---
--------------------------------------- start incdec ---
$a = F98 <---> string(3) "F98"
$a = F98 <---> string(3) "F98"
$a = F99 <---> string(3) "F99"
$a = F99
$a = G00 <---> string(3) "G00"
--------------------------------------- end incdec ---
--------------------------------------- start incdecrev ---
$a = FZ8 <---> string(3) "FZ8"
$a = FZ9 <---> string(3) "FZ9"
$a = FZ9 <---> string(3) "FZ9"
$a = FZ9
$a = FZ9 <---> string(3) "FZ9"
--------------------------------------- end incdecrev ---
--------------------------------------- start incdec ---
$a = ZZ8 <---> string(3) "ZZ8"
$a = ZZ8 <---> string(3) "ZZ8"
$a = ZZ9 <---> string(3) "ZZ9"
$a = ZZ9
$a = AAA0 <---> string(4) "AAA0"
--------------------------------------- end incdec ---
--------------------------------------- start incdecrev ---
$a = ZZ8 <---> string(3) "ZZ8"
$a = ZZ9 <---> string(3) "ZZ9"
$a = ZZ9 <---> string(3) "ZZ9"
$a = ZZ9
$a = ZZ9 <---> string(3) "ZZ9"
--------------------------------------- end incdecrev ---
--------------------------------------- start incdecrev ---
$a = 543J <---> string(4) "543J"
$a = 543K <---> string(4) "543K"
$a = 543K <---> string(4) "543K"
$a = 543K
$a = 543K <---> string(4) "543K"
--------------------------------------- end incdecrev ---
--------------------------------------- start incdec ---
$a = 543J <---> string(4) "543J"
$a = 543J <---> string(4) "543J"
$a = 543K <---> string(4) "543K"
$a = 543K
$a = 543L <---> string(4) "543L"
--------------------------------------- end incdec ---
--------------------------------------- start incdecrev ---
$a = 543J9 <---> string(5) "543J9"
$a = 543K0 <---> string(5) "543K0"
$a = 543K0 <---> string(5) "543K0"
$a = 543K0
$a = 543K0 <---> string(5) "543K0"
--------------------------------------- end incdecrev ---
--------------------------------------- start incdec ---
$a = 543J9 <---> string(5) "543J9"
$a = 543J9 <---> string(5) "543J9"
$a = 543K0 <---> string(5) "543K0"
$a = 543K0
$a = 543K1 <---> string(5) "543K1"
--------------------------------------- end incdec ---
--------------------------------------- start incdec ---
$a = & <---> string(1) "&"
$a = & <---> string(1) "&"
$a = & <---> string(1) "&"
$a = &
$a = & <---> string(1) "&"
--------------------------------------- end incdec ---
--------------------------------------- start incdecrev ---
$a = & <---> string(1) "&"
$a = & <---> string(1) "&"
$a = & <---> string(1) "&"
$a = &
$a = & <---> string(1) "&"
--------------------------------------- end incdecrev ---
--------------------------------------- start incdec ---
$a = 83& <---> string(3) "83&"
$a = 83& <---> string(3) "83&"
$a = 83& <---> string(3) "83&"
$a = 83&
$a = 83& <---> string(3) "83&"
--------------------------------------- end incdec ---
--------------------------------------- start incdecrev ---
$a = 83& <---> string(3) "83&"
$a = 83& <---> string(3) "83&"
$a = 83& <---> string(3) "83&"
$a = 83&
$a = 83& <---> string(3) "83&"
--------------------------------------- end incdecrev ---
--------------------------------------- start incdec ---
$a = 83&8 <---> string(4) "83&8"
$a = 83&8 <---> string(4) "83&8"
$a = 83&9 <---> string(4) "83&9"
$a = 83&9
$a = 83&0 <---> string(4) "83&0"
--------------------------------------- end incdec ---
--------------------------------------- start incdecrev ---
$a = 83&8 <---> string(4) "83&8"
$a = 83&9 <---> string(4) "83&9"
$a = 83&9 <---> string(4) "83&9"
$a = 83&9
$a = 83&9 <---> string(4) "83&9"
--------------------------------------- end incdecrev ---
--------------------------------------- start incdec ---
$a = 83&Z8 <---> string(5) "83&Z8"
$a = 83&Z8 <---> string(5) "83&Z8"
$a = 83&Z9 <---> string(5) "83&Z9"
$a = 83&Z9
$a = 83&A0 <---> string(5) "83&A0"
--------------------------------------- end incdec ---
--------------------------------------- start incdecrev ---
$a = 83&Z8 <---> string(5) "83&Z8"
$a = 83&Z9 <---> string(5) "83&Z9"
$a = 83&Z9 <---> string(5) "83&Z9"
$a = 83&Z9
$a = 83&Z9 <---> string(5) "83&Z9"
--------------------------------------- end incdecrev ---
--------------------------------------- start incdec ---
$a = 83&z8 <---> string(5) "83&z8"
$a = 83&z8 <---> string(5) "83&z8"
$a = 83&z9 <---> string(5) "83&z9"
$a = 83&z9
$a = 83&a0 <---> string(5) "83&a0"
--------------------------------------- end incdec ---
--------------------------------------- start incdecrev ---
$a = 83&z8 <---> string(5) "83&z8"
$a = 83&z9 <---> string(5) "83&z9"
$a = 83&z9 <---> string(5) "83&z9"
$a = 83&z9
$a = 83&z9 <---> string(5) "83&z9"
--------------------------------------- end incdecrev ---
--------------------------------------- start incdec ---
$a = &28 <---> string(3) "&28"
$a = &28 <---> string(3) "&28"
$a = &29 <---> string(3) "&29"
$a = &29
$a = &30 <---> string(3) "&30"
--------------------------------------- end incdec ---
--------------------------------------- start incdecrev ---
$a = &28 <---> string(3) "&28"
$a = &29 <---> string(3) "&29"
$a = &29 <---> string(3) "&29"
$a = &29
$a = &29 <---> string(3) "&29"
--------------------------------------- end incdecrev ---
--------------------------------------- start incdec ---
$a = &98 <---> string(3) "&98"
$a = &98 <---> string(3) "&98"
$a = &99 <---> string(3) "&99"
$a = &99
$a = &00 <---> string(3) "&00"
--------------------------------------- end incdec ---
--------------------------------------- start incdecrev ---
$a = &98 <---> string(3) "&98"
$a = &99 <---> string(3) "&99"
$a = &99 <---> string(3) "&99"
$a = &99
$a = &99 <---> string(3) "&99"
--------------------------------------- end incdecrev ---
string(2) "aa"
string(2) "aa"
string(2) "aa"
string(3) "zza"
string(3) "zza"
string(3) "zza"
